package com.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import com.mapper.StaffMapper;

import com.po.Staff;
import com.service.StaffService;
@Service("staffService")
public class StaffServiceImpl implements StaffService {
	@Autowired
	private StaffMapper mapper;

	
	@Override
	public List<Staff> list() {
		return mapper.list();
	}
	@Override
	public void update(Staff admin) {
		mapper.update(admin);
		
	}
	@Override
	public void add(Staff admin) {
		mapper.add(admin);
		
	}
	@Override
	public void del(int id) {
		mapper.del(id);
		
	}
	@Override
	public Staff findById(int id) {
		return mapper.findById(id);
	}
	@Override
	public List<Staff> searchlist(Staff staff) {
	
		return mapper.searchlist(staff);
	}

}
